package com.lrkj.lease.domain;

import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 合同变更记录对象 tb_lease_record
 *
 * @author yajun_ren
 * @date 2022-08-18
 */
@Data
public class LeaseRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 变更内容 */
    @Excel(name = "变更内容")
    private String content;

    /** 变更类型 */
    @Excel(name = "变更类型")
    private String recordType;


    @Excel(name = "合同id")
    private String contractId;

    /** 变更原因 */
    @Excel(name = "变更原因")
    private String leaseCause;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("recordType", getRecordType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
